FROM python:2.7.12

WORKDIR /Noun

ADD . /Noun

RUN apt-get update  && apt-get install -y libmysqlclient-dev  && pip install --index-url https://pypi.douban.com/simple --upgrade pip && pip install --index-url https://pypi.douban.com/simple -r requirements.txt

EXPOSE 8000

ENV NAME Noun

CMD ["/bin/sh","run.sh"]
